home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILFILE / UNPROPTC.LZH / PE-COLR.MOD < prev    next >
Text File  |  1983-06-11  |  10KB  |  228 lines

  1.  
  2.  
  3.          Written by James L.  Johnsen April 1st,1983
  4.  
  5.      This   write up is aimed at those people or persons who  have the     color
  6. card  and a color monitor and the IBM Personal    Editor.  I'll  show you how to
  7. change    some values in the .EXE file to give you colors while in the  Personal
  8. Editor that you probably weren't of.
  9.  
  10.      Doing   this modification does not affect the performance    of your   per-
  11. sonal editor in reguards to functions that it    performs.  It only causes  the
  12. color(s)  of text either entered by you or text output by the Personal    Editor
  13. to show up in colors of your choosing.
  14.  
  15.      This  mod    must be done (even if you do own DOS 2.00) from  or  with  DOS
  16. 1.10.     The  reason for this is that the first step in the mod  process is to
  17. rename    PE.EXE to PE.COM.   The main reason  for renaming  the file  extension
  18. from  .EXE to .COM is that the    DEBUG program will not allow you to write  the
  19. changed  file back to disk if the file name had or has the extension of  .EXE.
  20. There  would  be no  reason  NOT  to  use DOS 2.00 in this mod     except   that
  21. I've  noticed  that if you rename a .EXE file to fname.COM and load   it  into
  22. the  DEBUGger  then the DEBUG program recognizes that the file used to    be  of
  23. extension .EXE because,   (in my best guess), of the header in all .EXE files.
  24. There is a byte in the .EXE header that tells the command.  processor wheather
  25. or not it is a valid  .EXE file.   I'm sure that the DOS 2.00 version of DEBUG
  26. checks    that  or  the  command processor checks it and tells DEBUG  that  even
  27. though the file had the extension of .COM that it's really a .EXE   file.  The
  28. end   result is that DEBUG won't let you write the file  back off to the  disk
  29. after you load it.
  30.  
  31.      DOS  1.10 version of the DEBUG program isn't that smart.   You can change
  32. the extension from .EXE to .COM and the DEBUG  program will  go ahead and load
  33. it  at    location 'X':0100.   That's why  the file is renamed and DOS  1.10  is
  34. used.
  35. ------------------------------------------------------------------------------
  36.          What to do, how to do it and why it's done.
  37.  
  38.      First,   copy PE.EXE and PE.PRO and DEBUG.COM over to a WORK-DISK. Assume
  39. that the work disk is in drive A>.
  40.  
  41. From Drive A>.
  42.  
  43. A>RENAME PE.EXE PE.COM <CR>
  44. A>DEBUG <CR>
  45. -N PE.COM <CR>
  46. -L <CR>
  47. -D A260 L10 <CR>
  48.  
  49. this is the output you should see;
  50.  
  51. 'X':A260   07  70  17  71 71 07 04 00-BA 03 00 B0  50  00  28  00  [whatever]
  52.  
  53. location:      Value:     Function:
  54. ---------      ------     ---------
  55.  
  56. A260           07     Color    of text you see on the edit screen.  This  can
  57.              either  be  text  that you load into  the  editor  or
  58.              something that you type in yourself.
  59.  
  60. A261           70     Color    the text becomes when you mark it  for    either
  61.              moving or copying or what-have-you.
  62.  
  63. A262           17     Color    used  when you press the ESCAPE KEY  to  leave
  64.              entering text in the editor to the COMMAND LINE.  The
  65.              character  where  the cursor was is left 'MARKED'  on
  66.              the  edit screen.  This is the color value  for  that
  67.              'marker'.  Specifically, this is the color value used
  68.              when  leaving the edit screen if the cursor is on  an
  69.              unmarked (for block copy or move etc..) area of text.
  70.  
  71. A263           71     Color    used  when you press the ESCAPE KEY  to  leave
  72.              entering text in the editor to the COMMAND LINE.  The
  73.              character  where  the cursor was is left 'MARKED'  on
  74.              the edit screen. Unlike above (A262) this color value
  75.              is used if the cursor was resting on a marked area of
  76.              text (for block copy or move etc..).
  77.  
  78. A264           71     Color of text on the COMMAND LINE as you type it on
  79.              the command line. The '7' in the '71' is the color
  80.              used for the COMMAND LINE. On every monitor I've
  81.              seen, this color is low intensity white or grey.
  82.  
  83. A265           07     Color of text beneath the COMMAND LINE. This color is
  84.              used  for  the text 'Replace' and  'Insert'  and  the
  85.              numbers  that tell you what row and what column  your
  86.              currently type at.
  87.  
  88. A266           04     Color used for the error messages.
  89.  
  90. Things to keep in mind if you want to change the color values to get different
  91. colors for the areas they affect.
  92.  
  93. First,    you must understand what the format is for the color values that we've
  94. just  looked at.  The values were of cource in hex and of cource we're  two(2)
  95. digit values, two numbers or letters, (in our case numbers).
  96.  
  97. Lets  look  at    two locations,    A260 and A261 to understand  the  color  value
  98. format.
  99.  
  100. Location A260. The value there is 07. On the AMDEK COLOR II and NEC JC1202 RGB
  101. monitors (and more than likely the new IBM Color Monitor), 07 is the attribute
  102. for Low Intensity White, or Grey if you like. Lets take it apart.
  103.  
  104. The zero(0) of the '07' is the color used for the Background color.
  105. The seven(7) of the '07' is the color used for the Forground color.
  106.  
  107. You  should understand that any number,  0 through 7 in the Background part of
  108. the value does not cause the Forground characters to blink.  Number  eight(8),
  109. number    nine(9)  and  characters 'A through F' in the Background part  of  the
  110. value will cause the Forground characters to BLINK. So, unless you like blink-
  111. ing Forground characters on your screen,  don't use number eight(8) or  number
  112. nine(9)  or  characters 'A through F' in the Background part of the  attribute
  113. value.
  114.  
  115. Also,  you  should be aware that numbers zero(0) through seven(7) in the  For-
  116. ground part of the value (on every monitor I've ever seen color on), cause the
  117. color  of the text displayed on the screen to be of low  intensity.  I'm  sure
  118. that  the  hardware on these monitors are 'seeing' that if the 'I' bit is  OFF
  119. (numbers  zero(0)  through seven(7)) that there is no  added  intensity.  That
  120. seems  to make sence and in fact that is how it appears on the AMDEK COLOR  II
  121. and the modified NEC JC1202 RGB's.
  122.  
  123. Numbers  eight(8)  and nine(9) and characters 'A through F' in  the  Forground
  124. part of the attribute value cause the Forground characters to be of a brighter
  125. intensity.
  126.  
  127. If  your  undecided about what colors you would like for what,    then  take  my
  128. suggestion and enter the values into the locations outlined below.
  129.  
  130. example to try----after all, you can always change them if you don't like it.
  131.  
  132. From DEBUG
  133.  
  134.  
  135. If  you arn't familiar with DEBUGS' E)nter command then please read that  sec-
  136. tion in the DOS manual before attempting to ENTER the values for this  example
  137. below.
  138.  
  139. -E A260 <cr>
  140.  
  141. L = Low Intensity
  142. H = High Intensity
  143.  
  144. Preceeding character is first letter of color name except for 'Z' which is
  145. Black.
  146.                Color                   Color
  147. location: Old Value: Forgnd    Bakgnd location:  New Value: Forgnd    Bakgnd
  148. --------- ---------- ----------------- ---------  ---------- -----------------
  149. A260         07      W L    Z L    A260         0F      W H    Z L
  150. A261         70      Z L    W L    A261         1B      C H    B L
  151. A262         17      W L    B L    A262         7C      R H    W L
  152. A263         71      B L    W L    A263         1E      Y H    B L
  153. A264         71      B L    W L    A264         1E      Y H    B L
  154. A265         07      W L    Z L    A265         0A      G H    Z L
  155. A266         04      R L    Z L    A266         0C      R H    Z L
  156. ------------------------------------------------------------------------------
  157.  
  158.               TABLE OF COLOR VALUES TO CHOOSE FROM
  159. ______________________________________________________________________________
  160. LOW INTENSITY NONBLINKING FORGROUND    | HIGH INTENSITY NONBLINKING FORGROUND
  161.    COLORS WITH BLACK BACKGROUNDS       |    COLORS WITH BLACK BACKGROUNDS
  162. ------------------------------------------------------------------------------
  163. BLACK        00               |BLACK          08
  164. BLUE        01               |BLUE          09
  165. GREEN        02               |GREEN          0A
  166. CYAN        03               |CYAN          0B
  167. RED        04               |RED          0C
  168. MAGENTA     05               |MAGENTA       0D
  169. YELLOW        06  looks brown        |YELLOW          0E
  170. WHITE        07  looks grey           |WHITE          0F
  171. ______________________________________________________________________________
  172. LOW INTENSITY BLINKING FORGROUND       | HIGH INTENSITY BLINKING FORGROUND
  173.  COLORS WITH BLACK BACKGROUNDS           |   COLORS WITH BLACK BACKGROUNDS
  174. ------------------------------------------------------------------------------
  175. BLACK        80               |BLACK          88
  176. BLUE        81               |BLUE          89
  177. GREEN        82               |GREEN          8A
  178. CYAN        83               |CYAN          8B
  179. RED        84               |RED          8C
  180. MAGENTA     85               |MAGENTA       8D
  181. YELLOW        86               |YELLOW          8E
  182. WHITE        87               |WHITE          8F
  183. ______________________________________________________________________________
  184. BACKGROUND COLORS WITH A BLACK FORGROUND COLOR [all are Low Intensity]
  185. ------------------------------------------------------------------------------
  186.                     Note:  You  can substitute any of  the
  187.                     columns  that either have an '8' or  a
  188.                     '0'  in  it with any  of  the  numbers
  189.                     listed    to  the left for a  background
  190.                     color  to go with the forground  color
  191.                     you choose. Remember any number in the
  192.                     left  column with a value  of  atleast
  193.                     '8'  but not greater than 'F' hex will
  194.                     cause    the  forground    character   to
  195.                     blink. The background values listed to
  196.                     the  left in the left column will  not
  197.                     cause    the  forground    character   to
  198.                     blink.
  199. ------------------------------------------------------------------------------
  200.  
  201.        ********************EXACT PROCEDURE********************
  202.  
  203. ------------------------------------------------------------------------------
  204. COPY B:DEBUG.COM
  205.     1 File(s) copied
  206. A>COPY B:PE.*
  207. PE     EXE
  208. PE     PRO
  209.     2 File(s) copied
  210. A>RENAME PE.EXE PE.COM
  211.  
  212. A>DEBUG
  213. -F100 FFFF 00 <cr>
  214. -N PE.COM <cr>
  215. -L <cr>
  216. -DA260 L10 <cr>
  217. 0C39:A260  07 70 17 71 71 07 04 00-BA 03 00 B0 50 00 28 00   .p.qq...:..0P.(.
  218. -EA260 <cr>
  219. 0C39:A260  07.0F   70.       17.7C   71.1E   71.1E   07.0A   04.0C <cr>
  220. -W <cr>
  221. Writing B280 bytes
  222. -Q <cr>
  223.  
  224. A>RENAME PE.COM PE.EXE
  225.  
  226. A>PE <cr>   and away you go!!!
  227.  
  228.